package factory;


import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;



public class ImagesSingleton {
	private static ImagesSingleton instance= new ImagesSingleton();
	public static BufferedImage images[];

	
	
	
	
	private ImagesSingleton(){
		images = new  BufferedImage [18];
		try {
			images [Constants.OBJECT_REFERENCE_CASTLE_BLUE]= ImageIO.read(new File("castleBlue.png"));
			images [Constants.OBJECT_REFERENCE_CASTLE_RED]= ImageIO.read(new File("castleRed.png"));
			images [Constants.OBJECT_REFERENCE_BOMBERMAN]= ImageIO.read(new File("bomberman.gif"));
			images [Constants.OBJECT_REFERENCE_STRAWBERRY]= ImageIO.read(new File("fresa.png"));
			images [Constants.OBJECT_REFERENCE_SUGAR]= ImageIO.read(new File("azucarera.png"));
			images [Constants.OBJECT_REFERENCE_MONEY]= ImageIO.read(new File("monedas.gif"));
			images [Constants.OBJECT_REFERENCE_FUNGI]= ImageIO.read(new File("hongo.gif"));
			images [Constants.OBJECT_REFERENCE_HOUSE]= ImageIO.read(new File("house.gif"));
			images [Constants.OBJECT_REFERENCE_BAD_HOUSE]= ImageIO.read(new File("badHouse.gif"));
			images [Constants.OBJECT_REFERENCE_PERSON]= ImageIO.read(new File("person.gif"));
			images [Constants.OBJECT_REFERENCE_CONSTRUIR]= ImageIO.read(new File("construir.gif"));
			

			//collisions 
			images [Constants.OBJECT_REFERENCE_HOUSE_COLLISION]= ImageIO.read(new File("houseCollision.gif"));
			images [Constants.OBJECT_REFERENCE_BAD_HOUSE_COLLISION]= ImageIO.read(new File("badHouseCollision.gif"));
			
			images [Constants.OBJECT_REFERENCE_BOMBERMAN_COLLISION]= ImageIO.read(new File("bomberman.gif"));
			images [Constants.OBJECT_REFERENCE_STRAWBERRY_COLLISION]= ImageIO.read(new File("fresa.png"));
			images [Constants.OBJECT_REFERENCE_SUGAR_COLLISION]= ImageIO.read(new File("azucarera.png"));
			
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
	}
}
